package com.car.service;

import com.car.dao.StoreDao;
import com.car.dao.impl.StoreDaoImpl;
import com.car.domain.Car;

import java.util.List;

public class StoreService {
    private static final StoreDao storeDao = new StoreDaoImpl();

    /**
     * 展示未销售的汽车 status 0 代表就是未销售
     * select * from t_car where status = 0
     *
     * @return 未销售的汽车
     * @throws Exception 异常
     */
    public List<Car> display() throws Exception {
        return storeDao.display();
    }
}
